home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
SHELLS
/
SZ2
/
ADEMO2.INC
< prev
next >
Wrap
Text File
|
1992-08-31
|
2KB
|
43 lines
{===================================================================
Simple version; uses only MSGBOX.MessageBox
===================================================================}
function EditorDialog ( Dialog : Integer ;
Info : Pointer ) : word ; FAR ;
var
R : TRect ;
T : TPoint ;
begin
case Dialog of
edOutOfMemory :
EditorDialog := MessageBox ( ^C'Not enough memory for this operation.' ,
NIL ,
mfError + mfOkButton ) ;
edReadError :
EditorDialog := MessageBox ( ^C'Error reading file %s.' ,
@Info ,
mfError + mfOkButton ) ;
edWriteError :
EditorDialog := MessageBox ( ^C'Error writing file %s.' ,
@Info ,
mfError + mfOkButton ) ;
edCreateError :
EditorDialog := MessageBox ( ^C'Error creating file %s.' ,
@Info ,
mfError + mfOkButton ) ;
edSaveModify :
EditorDialog := MessageBox ( ^C'%s has been modified. Save?' ,
@Info ,
mfInformation + mfYesNoCancel ) ;
edSaveUntitled :
EditorDialog := MessageBox ( ^C'Save untitled file?' ,
NIL ,
mfInformation + mfYesNoCancel ) ;
else
MessageBox ( ^C'Unknown DIALOG requested!' ,
NIL ,
mfError + mfOkButton ) ;
end ;
end ;